<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>AdWords::V13::InfoService::InfoServiceWrapper</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
    <script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>     
    <div class="banner">
        <h1>
            <span class="type">Class</span> 
            AdWords::V13::InfoService::InfoServiceWrapper 
            
                <span class="parent">&lt; 
                    
                    Object
                    
                </span>
            
        </h1>
        <ul class="files">
            
            <li><a href="../../../../files/lib/adwords4r/v13/InfoServiceWrapper_rb.html">lib/adwords4r/v13/InfoServiceWrapper.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    
    <div class="description">
        <p>
Wrapper class for the v13 Info service. This class is automatically
generated.
</p>

    </div>
    

    

    
    

    
    
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
    
        <dt>G</dt>
        <dd>
            <ul>
                
                <li><a href="#M000143">getClientUnitsUsage</a>,</li>
                
                <li><a href="#M000129">getFreeUsageQuotaThisMonth</a>,</li>
                
                <li><a href="#M000132">getMethodCost</a>,</li>
                
                <li><a href="#M000142">getMethodUsage</a>,</li>
                
                <li><a href="#M000133">getOperationCount</a>,</li>
                
                <li><a href="#M000135">getOperationsQuotaThisMonth</a>,</li>
                
                <li><a href="#M000136">getUnitCount</a>,</li>
                
                <li><a href="#M000137">getUnitCountForClients</a>,</li>
                
                <li><a href="#M000138">getUnitCountForMethod</a>,</li>
                
                <li><a href="#M000139">getUsageQuotaThisMonth</a></li>
                
            </ul>
        </dd>
    
        <dt>N</dt>
        <dd>
            <ul>
                
                <li><a href="#M000128">new</a></li>
                
            </ul>
        </dd>
    
    </dl>
    

    

    

    

    

    
    <div class="sectiontitle">Attributes</div>
    <table border='0' cellpadding='5'>
        
        <tr valign='top'>
            <td class='attr-rw'>
                [R]
            </td>
            <td class='attr-name'>api</td>
            <td class='attr-desc'><p>
Holds the <a href="../../API.html">AdWords::API</a> object to which the
wrapper belongs.
</p></td>
        </tr>
        
        <tr valign='top'>
            <td class='attr-rw'>
                [R]
            </td>
            <td class='attr-name'>module</td>
            <td class='attr-desc'><p>
Holds a shortcut to the parent module. Use this to avoid typing the full
class name when creating classes belonging to this service, e.g.
</p>
<pre>
 service_object.module::ClassName
</pre>
<p>
instead of
</p>
<pre>
 AdWords::V13::InfoService::ClassName
</pre>
<p>
This will make it easier to migrate your code between <a
href="../../API.html">API</a> versions.
</p></td>
        </tr>
        
    </table>
    

    
            <div class="sectiontitle">Class Public methods</div>
            
            <div class="method">
                <div class="title" id="M000128">
                    
                    <a name="M000128"></a><b>new</b>(driver, api)
                    
                </div>
                
                <div class="description">
                  <p>
Constructor for <a href="InfoServiceWrapper.html">InfoServiceWrapper</a>.
</p>
<p>
Args:
</p>
<ul>
<li>driver: SOAP::RPC::Driver object with the remote SOAP methods for this
service

</li>
<li>api: the <a href="../../API.html">AdWords::API</a> object to which the
wrapper belongs

</li>
</ul>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">show</a>
                        
                    </p>
                    <div id="M000128_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 34</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">driver</span>, <span class="ruby-identifier">api</span>)
          <span class="ruby-ivar">@driver</span> = <span class="ruby-identifier">driver</span>
          <span class="ruby-ivar">@api</span> = <span class="ruby-identifier">api</span>
          <span class="ruby-ivar">@module</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoService</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="sectiontitle">Instance Public methods</div>
            
            <div class="method">
                <div class="title" id="M000143">
                    
                    <a name="M000143"></a><b>getClientUnitsUsage</b>(start_date, end_date)
                    
                </div>
                
                <div class="description">
                  <p>
<em>Extension method</em> &#8212; Calls the <a
href="../../Extensions.html#M000057">AdWords::Extensions.getClientUnitsUsage</a>
method with <tt>self</tt> as the first parameter.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000143_source')" id="l_M000143_source">show</a>
                        
                    </p>
                    <div id="M000143_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 260</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getClientUnitsUsage</span>(<span class="ruby-identifier">start_date</span>, <span class="ruby-identifier">end_date</span>)
          <span class="ruby-keyword kw">return</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Extensions</span>.<span class="ruby-identifier">getClientUnitsUsage</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">start_date</span>, <span class="ruby-identifier">end_date</span>)
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000129">
                    
                    <a name="M000129"></a><b>getFreeUsageQuotaThisMonth</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getFreeUsageQuotaThisMonth">getFreeUsageQuotaThisMonth</a>
method of the Info service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getFreeUsageQuotaThisMonth">the
online documentation for this method</a>.
</p>
<p>
Returns:
</p>
<ul>
<li>getFreeUsageQuotaThisMonthReturn: SOAP::SOAPLong

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000129_source')" id="l_M000129_source">show</a>
                        
                    </p>
                    <div id="M000129_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 49</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getFreeUsageQuotaThisMonth</span>()
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetFreeUsageQuotaThisMonth</span>.<span class="ruby-identifier">new</span>()
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getFreeUsageQuotaThisMonth</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getFreeUsageQuotaThisMonth Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000132">
                    
                    <a name="M000132"></a><b>getMethodCost</b>(service, method, date)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getMethodCost">getMethodCost</a>
method of the Info service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getMethodCost">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>service: SOAP::SOAPString

</li>
<li>method: SOAP::SOAPString

</li>
<li>date: SOAP::SOAPDate

</li>
</ul>
<p>
Returns:
</p>
<ul>
<li>getMethodCostReturn: SOAP::SOAPInt

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show</a>
                        
                    </p>
                    <div id="M000132_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 74</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getMethodCost</span>(<span class="ruby-identifier">service</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">date</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'service'</span>,
                <span class="ruby-identifier">service</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPString</span>)
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'method'</span>,
                <span class="ruby-identifier">method</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPString</span>)
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'date'</span>,
                <span class="ruby-identifier">date</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPDate</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetMethodCost</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">service</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">date</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getMethodCost</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getMethodCost Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000142">
                    
                    <a name="M000142"></a><b>getMethodUsage</b>(start_date, end_date)
                    
                </div>
                
                <div class="description">
                  <p>
<em>Extension method</em> &#8212; Calls the <a
href="../../Extensions.html#M000056">AdWords::Extensions.getMethodUsage</a>
method with <tt>self</tt> as the first parameter.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">show</a>
                        
                    </p>
                    <div id="M000142_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 254</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getMethodUsage</span>(<span class="ruby-identifier">start_date</span>, <span class="ruby-identifier">end_date</span>)
          <span class="ruby-keyword kw">return</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Extensions</span>.<span class="ruby-identifier">getMethodUsage</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">start_date</span>, <span class="ruby-identifier">end_date</span>)
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000133">
                    
                    <a name="M000133"></a><b>getOperationCount</b>(startDate, endDate)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getOperationCount">getOperationCount</a>
method of the Info service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getOperationCount">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>startDate: SOAP::SOAPDate

</li>
<li>endDate: SOAP::SOAPDate

</li>
</ul>
<p>
Returns:
</p>
<ul>
<li>getOperationCountReturn: SOAP::SOAPLong

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">show</a>
                        
                    </p>
                    <div id="M000133_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 104</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getOperationCount</span>(<span class="ruby-identifier">startDate</span>, <span class="ruby-identifier">endDate</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'startDate'</span>,
                <span class="ruby-identifier">startDate</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPDate</span>)
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'endDate'</span>,
                <span class="ruby-identifier">endDate</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPDate</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetOperationCount</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">startDate</span>, <span class="ruby-identifier">endDate</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getOperationCount</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getOperationCount Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000135">
                    
                    <a name="M000135"></a><b>getOperationsQuotaThisMonth</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getOperationsQuotaThisMonth">getOperationsQuotaThisMonth</a>
method of the Info service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getOperationsQuotaThisMonth">the
online documentation for this method</a>.
</p>
<p>
Returns:
</p>
<ul>
<li>getOperationsQuotaThisMonthReturn: SOAP::SOAPLong

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">show</a>
                        
                    </p>
                    <div id="M000135_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 128</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getOperationsQuotaThisMonth</span>()
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetOperationsQuotaThisMonth</span>.<span class="ruby-identifier">new</span>()
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getOperationsQuotaThisMonth</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getOperationsQuotaThisMonth Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000136">
                    
                    <a name="M000136"></a><b>getUnitCount</b>(startDate, endDate)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUnitCount">getUnitCount</a>
method of the Info service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUnitCount">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>startDate: SOAP::SOAPDate

</li>
<li>endDate: SOAP::SOAPDate

</li>
</ul>
<p>
Returns:
</p>
<ul>
<li>getUnitCountReturn: SOAP::SOAPLong

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">show</a>
                        
                    </p>
                    <div id="M000136_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 152</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getUnitCount</span>(<span class="ruby-identifier">startDate</span>, <span class="ruby-identifier">endDate</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'startDate'</span>,
                <span class="ruby-identifier">startDate</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPDate</span>)
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'endDate'</span>,
                <span class="ruby-identifier">endDate</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPDate</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetUnitCount</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">startDate</span>, <span class="ruby-identifier">endDate</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getUnitCount</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getUnitCount Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000137">
                    
                    <a name="M000137"></a><b>getUnitCountForClients</b>(clientEmails, startDate, endDate)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUnitCountForClients">getUnitCountForClients</a>
method of the Info service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUnitCountForClients">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>clientEmails: SOAP::SOAPArray of SOAP::SOAPString

</li>
<li>startDate: SOAP::SOAPDate

</li>
<li>endDate: SOAP::SOAPDate

</li>
</ul>
<p>
Returns:
</p>
<ul>
<li>getUnitCountForClientsReturn: SOAP::SOAPArray of <a
href="ClientUsageRecord.html">AdWords::V13::InfoService::ClientUsageRecord</a>

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">show</a>
                        
                    </p>
                    <div id="M000137_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 181</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getUnitCountForClients</span>(<span class="ruby-identifier">clientEmails</span>, <span class="ruby-identifier">startDate</span>, <span class="ruby-identifier">endDate</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'clientEmails'</span>,
                <span class="ruby-identifier">clientEmails</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPArray</span>)
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'startDate'</span>,
                <span class="ruby-identifier">startDate</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPDate</span>)
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'endDate'</span>,
                <span class="ruby-identifier">endDate</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPDate</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetUnitCountForClients</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">clientEmails</span>, <span class="ruby-identifier">startDate</span>, <span class="ruby-identifier">endDate</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getUnitCountForClients</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getUnitCountForClients Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000138">
                    
                    <a name="M000138"></a><b>getUnitCountForMethod</b>(service, method, startDate, endDate)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUnitCountForMethod">getUnitCountForMethod</a>
method of the Info service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUnitCountForMethod">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>service: SOAP::SOAPString

</li>
<li>method: SOAP::SOAPString

</li>
<li>startDate: SOAP::SOAPDate

</li>
<li>endDate: SOAP::SOAPDate

</li>
</ul>
<p>
Returns:
</p>
<ul>
<li>getUnitCountForMethodReturn: SOAP::SOAPLong

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">show</a>
                        
                    </p>
                    <div id="M000138_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 213</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getUnitCountForMethod</span>(<span class="ruby-identifier">service</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">startDate</span>, <span class="ruby-identifier">endDate</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'service'</span>,
                <span class="ruby-identifier">service</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPString</span>)
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'method'</span>,
                <span class="ruby-identifier">method</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPString</span>)
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'startDate'</span>,
                <span class="ruby-identifier">startDate</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPDate</span>)
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'endDate'</span>,
                <span class="ruby-identifier">endDate</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPDate</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetUnitCountForMethod</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">service</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">startDate</span>, <span class="ruby-identifier">endDate</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getUnitCountForMethod</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getUnitCountForMethod Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000139">
                    
                    <a name="M000139"></a><b>getUsageQuotaThisMonth</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUsageQuotaThisMonth">getUsageQuotaThisMonth</a>
method of the Info service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUsageQuotaThisMonth">the
online documentation for this method</a>.
</p>
<p>
Returns:
</p>
<ul>
<li>getUsageQuotaThisMonthReturn: SOAP::SOAPLong

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">show</a>
                        
                    </p>
                    <div id="M000139_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/InfoServiceWrapper.rb, line 241</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getUsageQuotaThisMonth</span>()
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetUsageQuotaThisMonth</span>.<span class="ruby-identifier">new</span>()
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getUsageQuotaThisMonth</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getUsageQuotaThisMonth Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
</div>
    </div>
  </body>
</html>    